<?php
$jellyfriends = $this->Facebook->get_jelly_friends();
							echo "Friends on JellyFish...<br><br>"; $count = 0?>
							<table id="friendstable">
							<tr>
							<?php foreach($jellyfriends as $friend)
							{ $count = $count + 1;
							if($count > 5){
							
							$count = 0;
							echo "</tr><tr>"; } 
							 echo "<td>";
							 echo $html->image("http://graph.facebook.com/" .$friend . "/picture?type=large");
							 echo "<br>";
							 echo $html->link($this->Facebook->get_name_from_id($friend),array("controller"=>"posts","action"=>"index",$friend));
							 echo "<br></td>";
							 }
							echo "</tr>";
							echo "</table>";
?>